package com.slsher.mybatis.mapper;

import com.slsher.mybatis.pojo.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DynamicSQLMapper {
    /**
     * if标签 where标签 trim标签
     * 查询用户的信息*/
    List<Employee> getEmpByCondition(Employee employee);

    /**
     * choose when otherwise 标签*/
    List<Employee> getEmpByChoose(Employee employee);

    /**
     * 通过foreach实现批量删除操作
     * */
    int deleteMoreByArray(@Param("eids") Integer[] eids);

    /**
     * 通过foreach实现批量添加操作
     * */
    int insertMoreByList(@Param("emps") List<Employee> emps);
}
